From: Richard M. Stallman Date: Fri, 9 Jan 1998 23:07:47 +0000 (+0000) Subject: (Fsend_string_to_terminal): Use size_byte. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~78458 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=94f3db6251d7dbabcd02bb9630dc0af98854e7e8;p=emacs.git (Fsend_string_to_terminal): Use size_byte. --- diff --git a/src/dispnew.c b/src/dispnew.c index a7441b990d6..8b4709acea5 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -2249,12 +2249,13 @@ Control characters in STRING will have terminal-dependent effects.") (string) Lisp_Object string; { + /* ??? Perhaps we should do something special for multibyte strings here. */ CHECK_STRING (string, 0); - fwrite (XSTRING (string)->data, 1, XSTRING (string)->size, stdout); + fwrite (XSTRING (string)->data, 1, XSTRING (string)->size_byte, stdout); fflush (stdout); if (termscript) { - fwrite (XSTRING (string)->data, 1, XSTRING (string)->size, termscript); + fwrite (XSTRING (string)->data, 1, XSTRING (string)->size_byte, termscript); fflush (termscript); } return Qnil;